package cn.huolabao.feign;

import cn.huolabao.common.feign.OAuth2FeignConfig;
import cn.huolabao.dto.UserDetailDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "leechee-admin-service", configuration = OAuth2FeignConfig.class)
public interface UserClient {
    @GetMapping("/auth/info/{username}")
    UserDetailDto getUserInfo(@PathVariable("username") String username);
}
